<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <form action="{:url('submitEditStructureFieldAction')}" method="post" >
        <input type="hidden" name="field_id" value="{$field.id}">
        <div>字段属性</div>
        <div>
            <label for="name">名称</label>
            <input type="text" id="name" name="name" value="<?php if(isset($field)&&isset($field['name'])) echo $field['name'];?>"/>
        </div>
        <div>
            <label for="alias">别名</label>
            <input type="text" id="alias" name="alias" value="<?php if(isset($field)&&isset($field['alias'])) echo $field['alias'];?>"/>
        </div>
        <div>
            <label for="title">标题</label>
            <input type="text" id="title" name="title" value="<?php if(isset($field)&&isset($field['title'])) echo $field['title'];?>"/>
        </div>
        <div>
            <label for="describe">描述</label>
            <input type="text" id="describe" name="describe" value="<?php if(isset($field)&&isset($field['describe'])) echo $field['describe'];?>"/>
        </div>
        <div>
            <label for="type">类型</label>
            <input type="text" id="type" name="type" value="<?php if(isset($field)&&isset($field['type'])) echo $field['type'];?>"/>
        </div>
        <div>
            <label for="type_params">参数</label>
            <textarea name="type_params" id="type_params" cols="30" rows="10"><?php if(isset($field)&&isset($field['type_params'])) echo $field['type_params'];?></textarea>
        </div>
        <li>
        <button type="submit">提交</button>
    </form>
</body>
</html>
